import jdbc.connection.DatabaseConnectionFactory;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
import java.io.IOException;
import java.sql.SQLException;

/**
 * @author dongyang
 * @since 2021-01-25 15:17
 */
public class Main {
    public static void main(String[] args) throws IOException, SQLException {
        DatabaseConnectionFactory connectionFactory = DatabaseConnectionFactory.getConnectionFactory();

        connectionFactory.init();
        connectionFactory.getConnection();


        EntityManagerFactory factory =
           Persistence.createEntityManagerFactory("course_management");

    }
}
